package com.study.javaOther.permission.handle;

import com.study.javaOther.permission.accoperation.DefaultOperation;
import com.study.javaOther.permission.accoperation.Equals;
import com.study.javaOther.permission.accoperation.IACCOperation;
import com.study.javaOther.permission.enums.PermissionEnum;

/**
 * @Name: IAccDto
 * @Description: java类作用描述
 * @Author: yn
 * @CreateDate: 2022/4/20 14:35
 * @Remark: 特殊说明
 * @Version: 1.0
 */
public interface IAccHandle {
    default IACCOperation convertOperation(String operation){
        switch (operation){
            case "=":return new Equals();
            default: return new DefaultOperation();
        }
    }
    Boolean check(PermissionEnum permission);
}
